public class Test {

    public static void main(String[] args) {
        System.out.println(isPalindrome(10));
    }
    public static boolean isPalindrome(int x) {
        if(x < 0 ){
            return false ;
        }
        int len = 0 ;
        int x1 = x ;
        while(x1 != 0){
            x1 /= 10 ;
        }
        int right = 0 ;
        while(len > right){
            if((x >> (len - 1) ^ ((x >> right) % 10) ) != 0){
                return false ;
            }
            len -- ;
            right ++ ;
        }
        return true ;
    }
}
class Student{
    public String name ;
    public int num ;

    public static void func(){

    }

    public static void main(String[] args) {
       Student stu = new Student() ;
    }


}
